package org.client.iot.ui.device.adapter;

import android.content.Context;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.client.iot.R;
import org.client.iot.domain.DataInfo;
import org.client.iot.domain.DevChargeInfoVo;

public class AgingDataDetailsAdapter extends BaseQuickAdapter<DataInfo, BaseViewHolder> {

    public AgingDataDetailsAdapter(Context mContext) {
        super(R.layout.content_device_aging_de);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, DataInfo dataInfo) {
        baseViewHolder.setText(R.id.textView_depth, dataInfo.getDepth() + "");
        baseViewHolder.setText(R.id.textView_displacement, dataInfo.getDisplacement() + "");
        baseViewHolder.setText(R.id.textView_angle, dataInfo.getAngle() + "");
    }
}
